import pyautogui
# pyautogui.PAUSE = 1

# 绝对移动
# pyautogui.moveTo(100, 100, 1)

# # 相对移动
# pyautogui.move(100, 100, 1)

# # 补间移动
# # 先慢后快
# pyautogui.moveTo(100, 100, 2, pyautogui.easeInQuad)
# # 先快后面
# pyautogui.moveTo(200, 200, 2, pyautogui.easeOutQuad) 
# # 开始与结束快速移动，中间过程慢速移动
# pyautogui.moveTo(100, 100, 2, pyautogui.easeInOutQuad)


# # 鼠标在当前位置进行点击左键操作
# pyautogui.click()
# # 鼠标在(100, 100)位置进行点击左键操作
# pyautogui.click(x=100, y=100)

# 点击右键
# pyautogui.click(button='right')

# # 双击左键，每次点击间隔时间0.25秒
# pyautogui.click(clicks=2, interval=0.25)
# # 双击右键
# pyautogui.click(button='right',clicks=2, interval=0.25)

# # 在鼠标当前位置点击左键不松开
# pyautogui.mouseDown()
# # 松开鼠标左键
# pyautogui.mouseUp()
# # 在(100,100)位置点击右键不松开
# pyautogui.mouseDown(button='right', x=100, y=100)
# # 松开鼠标右键
# pyautogui.mouseUp(button='right')


# pyautogui.dragTo(x=100, y=100, button='left')

# import pyautogui,time
# time.sleep(3)
# screenWidth, screenHeight = pyautogui.size()
# pyautogui.moveTo(screenWidth / 2, screenHeight / 2)
# distance = 200
# duration = 0.5
# while distance > 0:
#         pyautogui.drag(distance, 0, duration=duration, button='left')   # move right
#         distance -= 5
#         pyautogui.drag(0, distance, duration=duration, button='left')   # move down
#         pyautogui.drag(-distance, 0, duration=duration, button='left')  # move left
#         distance -= 5
#         pyautogui.drag(0, -distance, duration=duration, button='left')  # move up
# import time
# time.sleep(3)
# pyautogui.drag(210, 0, duration=1, button='left')
# pyautogui.move(-10, 0)
# pyautogui.drag(0, 210, duration=1, button='left')
# pyautogui.drag(-210, 0, duration=1, button='left')
# pyautogui.drag(0, -210, duration=1, button='left')

# 有平台限制
# while True:
#         info = pyautogui.displayMousePosition()
#         print(type(info))

# 控制鼠标滚动
# 将鼠标移动到屏幕中(500,500)的位置，向上滚动
# pyautogui.scroll(100, x=500, y=500)

import time
time.sleep(3)
pyautogui.click(513, 177, button='right')
# pyautogui.moveTo(768, 310)